<%-- 
    Document   : resume
    Created on : 11.3.2012
    Author     : VERNER Jan
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<jsp:useBean id="emailBean"
             class="cz.vse.javaee.email.EmailBean"
             scope="session"/>

<html>
    <head><title>Mail resumé</title></head>
    
    <body>
        <h1>Mail resumé</h1>
        
        <b>Uživatel:</b>   ${emailBean.user}     <br/>
        <b>Komu:</b>       ${emailBean.to}       <br/>
        <b>Předmět:</b>    ${emailBean.subject}  <br/>
        <b>Zpráva:</b>     ${emailBean.body}  <br/>
        <b>Datum:</b>      <%= new java.util.Date().toString() %>
        
        <form action="sendMail" method="post">
            <input type="hidden" name="action" value="new">
            <input type="submit" value="Nový email">
        </form>

    </body>
</html>